package com.wuyu.execption;

public class BizException extends RuntimeException{
    private String code;
    private String msg;
    private String i18nCode;
    private static final long serialVersionUID = 1L;

    public BizException() {
    }

    public BizException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BizException(String code, String i18nCode, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.i18nCode = i18nCode;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(String message, String code) {
        super(message);
        this.code = code;
    }

    public BizException(String message, String code, String i18nCode) {
        super(message);
        this.code = code;
        this.i18nCode = i18nCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getI18nCode() {
        return this.i18nCode;
    }

    public void setI18nCode(String i18nCode) {
        this.i18nCode = i18nCode;
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}
